<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="../../lib/layui-v2.5.4/css/layui.css" media="all">
    <script src="../../lib/jquery-3.4.1/jquery-3.4.1.min.js"></script>


</head>
<body>

<form class="layui-form-item" action="" lay-filter="departmentForm">
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">编号</label>
            <div class="layui-input-block" style="width:200px">
                <input type="text" id="cid" name="cid" lay-verify="cid" autocomplete="off" placeholder=""
                       class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">姓名</label>
            <div class="layui-input-block" style="width:200px">
                <input type="text" id="cname" name="cname" lay-verify="cname" autocomplete="off" placeholder=""
                       class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">联系方式</label>
            <div class="layui-input-inline" style="width:200px">
                <input type="text" id="ctel" name="ctel" lay-verify="ctel" autocomplete="off" placeholder=" "
                       class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">地址</label>
            <div class="layui-input-inline" style="width:200px">
                <input type="text" id="caddress" name="caddress" lay-verify="caddress" autocomplete="off"
                       placeholder=" "
                       class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-inline" style="width:200px">
                <input type="text" id="cremark" name="cremark" lay-verify="cremark" autocomplete="off" placeholder=" "
                       class="layui-input">
            </div>
        </div>
    </div>
</form>
<script src="../../lib/layui-v2.5.4/layui.js" charset="utf-8"></script>
<script type="application/javascript">
    //   getValue属于window对象
    function getValues() {
        var cid = $("#cid").val();
        var cname = $("#cname").val();
        var ctel = $("#ctel").val();
        var caddress = $("#caddress").val();
        var cremark = $("#cremark").val();

        var data = {"cid": cid, "cname": cname, "ctel": ctel, "caddress": caddress, "cremark": cremark,}
        return data;
    }

</script>
</body>
</html>